class Person:
    def __init__(self,name,age): 
        self.name = name
        self.age = age
    #     self.version = 1.0
        
    # def say_hello(self):
    #     print("hello",self.name)
    # def eat_food(self,food):
    #     print(self,"iseating",food)
    # def run(self):
    #     print(self,"跑步")
    def __str__(self):
        # return "姓名:{} 年龄：{}".format(self.name,self.age)
        return f"姓名：{self.name}年龄:{self.age}"
    
p1 = Person("张三",20)
# p2 = Person("李四",33)
print(p1)
# print(p2)
# p2.eat_food(p1.name)